package com.pair.micro.fee.modules.charge.convert;

import com.pair.micro.fee.modules.charge.entity.ChargeProjectEntity;
import com.pair.micro.fee.modules.charge.entity.ChargeReceiveEntity;
import com.pair.micro.fee.modules.charge.vo.ChargeProjectVO;
import com.pair.micro.fee.modules.charge.vo.ChargeReceiveVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 收费设置
 *
 * @author xubz
 *
 */
@Mapper
public interface ChargeReceiveConvert {
    ChargeReceiveConvert INSTANCE = Mappers.getMapper(ChargeReceiveConvert.class);

    ChargeReceiveEntity convert(ChargeReceiveVO vo);

    ChargeReceiveVO convert(ChargeReceiveEntity entity);

    List<ChargeReceiveVO> convertList(List<ChargeReceiveEntity> list);

}